


const chaosUtils = {
    getTimeStrFormNum(num){
        var res = "";

        var hours = Math.floor(num/3600);
        if(hours<=9){
            res="0"+hours+":";
        }
        if(10<=hours){
            res = hours+":"
        }

        var minutes = Math.floor(num/60)%60;
        if(minutes<=9){
            res += "0"+minutes+":";
        }
        if(10<=minutes){
            res += minutes+":";
        }

        var seconds = Math.floor(num%60);
        if(seconds<=9){
            res += "0"+seconds;
        }
        if(10<=seconds){
            res += seconds;
        }

        return res;
    }
}

export default chaosUtils
